<?php
/**
 * The template used for displaying content restaurant location in content-resto.php
 *
 * @package woodranch
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class('resto-location'); ?>>
	<div class="group">
		<?php echo apply_filters('the_content', get_post_meta( $post->ID, 'ba_slider_reataurant', true)); ?>
	</div>
    <div class="group">
    	<div class="group breadcrumb">
				<?php the_breadcrumb(); ?>
			</div>	
			<header class="entry-header">
				<h1 class="entry-title"><?php the_title(); ?></h1>
			</header><!-- .entry-header -->
    </div>
	<div class="group">
		<div class="eight columns alpha">
			
	
			<div class="entry-content">
				<?php the_content(); ?>
				<?php
					wp_link_pages( array(
						'before' => '<div class="page-links">' . __( 'Pages:', 'woodranch' ),
						'after'  => '</div>',
					) );
				?>
			</div><!-- .entry-content -->
			<div class="detail-resto">	<!--[start:detail resto]-->
				<!-- location resto -->
				<div class="row group Location"><!--[start:location]-->
					<div class="one columns alpha">
					<?php
						$kids = get_post_meta($post->ID, 'ba_icon_location', true); 
						$path = $kids['url'];
						if($path == null)
						{
						?>
							<img src="<?php bloginfo('template_url'); ?>/images/location2.png" alt="" class="scale-with-grid" />
						<?php
						}else{	
							echo '<img src="'.$path.'" />';
						}
					?>
					</div>
					<div class="six columns omega">
						<h1 class="entry-title"><?php if (ICL_LANGUAGE_CODE == "es") {?>Ubicación <?php }else {?>Location<?php } ?></h1>	
						<?php echo apply_filters('the_content', get_post_meta( $post->ID, 'ba_address_restaurant', true)); ?>
						<div id="basic-modal">
							<a href="#mapit" class="basic showmap fancybox">Map It</a>
						</div>
                        <div class="fancybox-hidden" style="display: none;">
                        <div id="mapit">
							<?php

if ( function_exists( 'pronamic_google_maps' ) ) {
    pronamic_google_maps( array(
        'width'  => 590,
        'height' => 300 
    ) );
}

?>
                        </div>
                        </div>
					</div>
				</div><!--[end:location]-->
				<div class="row group Hour"><!--[start:hour]-->
					<div class="one columns alpha">
					<?php
						$kids = get_post_meta($post->ID, 'ba_icon_time', true);  
						$path = $kids['url'];
						if($path == null)
						{
						?>
							<img src="<?php bloginfo('template_url'); ?>/images/Clock.png" alt="" class="scale-with-grid" />
						<?php
						}else{	
							echo '<img src="'.$path.'" />';
						}
					?>
					</div>
					<div class="six columns omega">
						<h1 class="entry-title"><?php if (ICL_LANGUAGE_CODE == "es") {?>Horas<?php }else {?>Hours<?php } ?></h1>
						<?php echo apply_filters('the_content', get_post_meta( $post->ID, 'ba_time_restaurant', true)); ?>
					</div>
				</div><!--[end:hour]-->
				<div class="row group Menu"><!--[start:menu]-->
					<div class="one columns alpha">
					<?php
						$kids = get_post_meta($post->ID, 'ba_icon_menu', true); 
						$path = $kids['url'];
						if($path == null)
						{
						?>
							<img src="<?php bloginfo('template_url'); ?>/images/menu2.png" alt="" class="scale-with-grid" />
						<?php
						}else{	
							echo '<img src="'.$path.'" />';
						}
					?>
					</div>
					<div class="six columns omega">
						<h1 class="entry-title"><?php if (ICL_LANGUAGE_CODE == "es") {?>Menús<?php }else {?>Menus<?php } ?></h1>
						<?php get_template_part('list-menu'); ?>
					</div>
				</div><!--[end:menu]-->
				
				<div class="row group Area"><!--[start:area]-->
					<div class="one columns alpha">
					<?php
						$kids = get_post_meta($post->ID, 'ba_icon_todo', true); 
						$path = $kids['url'];
						if($path == null)
						{
						?>
							<img src="<?php bloginfo('template_url'); ?>/images/area.png" alt="" class="scale-with-grid" />
						<?php
						}else{	
							echo '<img src="'.$path.'" />';
						}
					?>
					</div>
					<div class="six columns omega">
						<h1 class="entry-title"><?php if (ICL_LANGUAGE_CODE == "es") {?>Cosas que hacer en la zona<?php }else {?>Things to do in the area<?php } ?></h1>
						<?php echo apply_filters('the_content', get_post_meta( $post->ID, 'ba_todo_area', true)); ?>
					</div>
				</div><!--[end:area]-->
			</div><!--[end:detail resto]-->		
		</div>
		<div class="three columns omega">
			<a href="#" class="buttonorder group row"><?php if (ICL_LANGUAGE_CODE == "es") {?>ORDEN EN LÍNEA <?php }else {?>Order Online<?php } ?></a>
			<a href="#" class="buttonorder group row"><?php if (ICL_LANGUAGE_CODE == "es") {?>Solicitar Tarjetas de regalo <?php }else {?>Order Gift Cards<?php } ?></a>
			<a href="#" class="buttonorder group row"><?php if (ICL_LANGUAGE_CODE == "es") {?>Catering Orden Order <?php }else {?>Catering<?php } ?></a>
		</div>
	</div>
	<?php edit_post_link( __( 'Edit', 'woodranch' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
	</article><!-- #post-## -->